.cm-popup
  overflow hidden
  position fixed
  bottom 0
  left 0
  right 0
  display flex
  /* 遮罩层应覆盖导航栏、加载框等组件，因此层级定义为高级 */
  z-index $z-index-high

.cm-popup-content
  /* 默认颜色 */
  background-color $app-card-bg-color
  color $app-text-color
  position absolute
  
  &.popup-left
    top 0
    left 0
    bottom 0
  
  &.popup-right
    top 0
    right 0
    bottom 0
  
  &.popup-top
    top 0
    left 0
    right 0
  
  &.popup-bottom
    bottom 0
    left 0
    right 0
  
  &.popup-center
    margin: auto
    top: 0 
    left: 0
    bottom: 0 
    right: 0

.cm-popup-cover
  cm-absolute(0, 0, 0, 0)
  background-color $app-mask-bg-color

.cm-popup-none
  display none
  
